package com.project.maven.demo_maven.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.project.maven.demo_maven.entry.FileEntity;
import com.project.maven.demo_maven.impl.IFileService;
import com.project.maven.demo_maven.mapper.IFileMapper;


/**
 * 
 * 文件业务处理
 * @author luzhenbang
 *
 */
@Service("fileService")
public class FileService implements IFileService {

	@Autowired
	IFileMapper mapper;
	@Override
	public int insertFile(FileEntity entity) {
		// TODO Auto-generated method stub
		return mapper.insertFile(entity);
	}
	@Override
	public FileEntity selectFile(String path) {
		// TODO Auto-generated method stub
		return mapper.selectFile(path);
	}
	
    
	
}
